﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Printing;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
using static System.Net.Mime.MediaTypeNames;

namespace MeasureAbstract.Base
{
    public static class DeviceManage
    {
        /// <summary>
        /// 为设备列表中的设备创建对象实例（设备类型需提前指定）
        /// </summary>
        /// <param name="DeviceList"></param>
        //public static void CreatDeviceObject(ref List<DeviceInformation> DeviceList)
        //{
        //    foreach (DeviceInformation Device in DeviceList)
        //    {
        //        if (Device.Type != null)
        //        {
        //            Device.Object = System.Activator.CreateInstance(Device.Type);

        //        }
        //        else
        //        {
        //            Device.Object = null;
        //        }
        //    }
        //}

        /// <summary>
        /// 为设备列表中的设备创建对象实例（去模块目录下根据设备名称，厂家，型号去匹配）
        /// </summary>
        /// <param name="DeviceList"></param>
        //public static void CreatDeviceObject(ref List<DeviceInformation> DeviceList,string ModuleDirectory)
        //{
        //    throw new NotImplementedException();
        //}

        public static T1 CreatDeviceObject<T1, T2>()
        {
            throw new NotImplementedException();
        }
        public static T CreatDeviceObject<T>(string DeviceName, string Vender, string Model, string ModuleDirectory)
        {
            throw new NotImplementedException();
        }
    }
}
